package com.wlyy.his.controller.registration;

import com.wlyy.his.service.registration.IHisInfoService;
import com.wlyy.his.entity.registration.HisInfo;
import com.wlyy.his.common.api.CommonResult;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
import java.util.List;


/**
 * @deprecated 查询分院信息
 * @author 10097
 * @date 2021-9-1 14:11:56
 */
@RestController
@RequestMapping("/his")
public class HisInfoController {

    @Resource
    public IHisInfoService hisInfoService;


    /**
     * 查询全部的分院信息
     *
     * @return 结果
     */
    @GetMapping("all")
    public CommonResult<List<HisInfo>> findAll() {
        List<HisInfo> infos = hisInfoService.list();
        return CommonResult.success(infos);
    }
}

